/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-04-24
 * Time:15:49
 */
public class TestDemo11 {
    public static void main(String[] args) {
        int count=0;
        for (int i = 1; i <= 99; i++) {
            if(i%10==9){
                count++;
            }
            if(i/10==9){
                count++;
            }
        }
        System.out.println(count);
    }
}
